<template>
	<view>
		<image class="bgImage" src="/static/image/guide/homeBg.png" mode="widthFix"></image>
		<view class="navBox">
			<image class="backBtn" @click="goBack" src="http://cdn.yic3.cn/lawyer/mp-xhs/mine/backIcon.png"
				mode="widthFix"></image>
			<p>{{title}}</p>
		</view>
		<view style="width: 100%;height: 188rpx;"></view>
		<scroll-view  scroll-y="true" class="listBox">
			<text id="pdf-container">{{content.replace(/\\n/,'\n')}}</text>
		</scroll-view>
		<view class="btnBox">
			<p class="copy" @click="copyText(content)">复制</p>
			<!-- #ifdef MP -->
			<p v-if="show">下载APP享更好体验</p>
			<!-- #endif -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: "",
				content: '',
				show:false
			};
		},
		onLoad(e) {
			this.show = uni.getStorageSync('config')['client.pay.enable']
			console.log(this.show)
			this.title = e.name
			this.content = e.result
		},
		mounted() {
		},
		methods: {
			
		},
	}
</script>

<style lang="scss">
	page {
		background-color: #15161C;
	}

	@import 'writeResult.scss'
</style>